package main

import "fmt"

func uniqueOccurrences(arr []int) bool {
	m := make(map[int]int)
	for _, num := range arr {
		if _, ok := m[num]; ok {
			m[num]++
		} else {
			m[num] = 1
		}
	}
	fmt.Println(m)
	n := make(map[int]bool)
	for _, key := range m {
		if _, in := n[key]; in {
			return false
		} else {
			n[key] = true
		}
	}
	fmt.Println(n)
	return true
}
